﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Process : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TiemPhongDataContext db = new TiemPhongDataContext();
        string kq = "";
        if (!string.IsNullOrEmpty(Request.QueryString["KiemTraTrung"]))
        {
            var data = db.NguoiDungs.Where(c => c.Email == Request.QueryString["KiemTraTrung"]);
            if (data.Count() != 0)
                kq = "1";
            else
                kq = "0";
        }
        Response.ClearHeaders();
        Response.ClearContent();
        Response.ContentType = "text/html";
        Response.Write(kq);
        Response.End();
    }
}